package com.yc.mybatis.core;

import java.io.InputStream;

public class SqlSessionFactoryBuilder {
	private static SqlSessionFactory factory;
	
	private SqlSessionFactoryBuilder() {
		
	}
	
	public synchronized static SqlSessionFactory build(InputStream is) {
		if(factory == null) {
			factory = new SqlSessionFactory(is);
		}
		return factory;
	}
}
